package com.molin.IOtest.bytestreamTest.fileoutputStreamTest;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class OutputDemo2 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("D:\\IdeaProjects\\BasicCode\\mIdeaTest\\src\\com\\molin\\IOtest\\bytestreamTest\\a.txt");
        byte[] bys={97,98,99,100,102,103,104};
//        fos.write(bys);
        fos.write(bys,1,2);
        fos.close();
    }
}
